/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.tewi.jeeunit.contexts;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import pl.tewi.jeeunit.annotations.Application;
import pl.tewi.jeeunit.annotations.ApplicationServer;
import pl.tewi.jeeunit.annotations.Applications;
import pl.tewi.jeeunit.annotations.Ports;
import pl.tewi.jeeunit.annotations.Security;
import pl.tewi.jeeunit.junit4.JeeSuite;
import pl.tewi.jeeunit.types.ApplicationServerType;
import pl.tewi.jeeunit.types.ApplicationType;

/**
 * Test działania wstrzykiwania zależności do klas testowych
 * @author Marcin Kwapisz
 */
@RunWith(JeeSuite.class)
@Suite.SuiteClasses({EjbFieldInjectorTest.class})
@ApplicationServer(instanceName = "domain1",
serverType = ApplicationServerType.GLASSFISH,
instanceParentPath = "target/glassfish", security =
@Security(securityRealmName = "fileRealm", roles = {"superuser", "superuser1"}), instancePorts =
@Ports(http = 6080, https = 6081))
@Applications(applications = {
    @Application(target = "domain1", name = "classes1",
    applicationPath = "target/classes",
    applicationType = ApplicationType.JAR,
    descriptors = {"src/test/resources/META-INF/glassfish-ejb-jar.xml", "src/test/resources/META-INF/ejb-jar.xml"})})
public class InjectorTestSuite {

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }
}
